/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.perlak.filesearch;

import java.io.File;
import java.io.FileFilter;

/**
 *
 * @author Mateusz
 */
public class FileSearchRequest {

    private String searchName = "*";
    private String fullDirPath = "";
    private String source = "";

    public FileSearchRequest(String searchQuery, String dir, String source) {
        this.searchName = searchQuery;
        this.fullDirPath = dir;
        this.source= source;
    }

    public FileFilter getFileFilter()
    {
        return new FileFilter() {

            @Override
            public boolean accept(File pathname) {
                return true;
            }
        };
    }
    public String getFullSearch()
    {
        return fullDirPath+searchName;
    }
    /**
     * @return the searchName
     */
    public String getSearchName() {
        return searchName;
    }

    /**
     * @param searchName the searchName to set
     */
    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    /**
     * @return the fullDirPath
     */
    public String getFullDirPath() {
        return fullDirPath;
    }

    /**
     * @param fullDirPath the fullDirPath to set
     */
    public void setFullDirPath(String fullDirPath) {
        this.fullDirPath = fullDirPath;
    }

    /**
     * @return the source
     */
    public String getSource() {
        return source;
    }

    /**
     * @param source the source to set
     */
    public void setSource(String source) {
        this.source = source;
    }
    
}
